<template>
  <div>
    <el-button type="primary" @click="willAdd">添加</el-button>
    <!-- 表格组件 -->
    <v-list @willUpdate="willUpdate" :list="list"></v-list>
    <!-- 弹框表单组件 -->
    <v-form :status="status" :list="list" ref="from"></v-form>
  </div>
</template>

<script>
import vForm from "./components/form.vue";
import vList from "./components/list.vue";
import {statusMixins} from "../../mixins"
export default {
  components: {
    vList,
    vForm,
  },
  // 引入混入
  mixins:[statusMixins],
  data() {
    return {
      
      list: [],
      // 分页的数据
      total: 0, //总数
      size: 2, //每页展示的数
      page: 1,
    };
    
  },
  methods: {
    
  },
  mounted() {
    
  },
};
</script>

<style>
</style>